package com.wxd.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wxd
 * @version V1.0
 * @description TestExceptionController
 * @date 2022/10/12 14:12
 **/
@RequestMapping("/error")
@RestController
public class TestExceptionController {

    @GetMapping("/test")
    public String test() {
        int a = 10 / 0;
        return "成功";
    }
}
